package be.dioubs.sportTrack.common;

import java.text.SimpleDateFormat;
import java.util.Date;

import android.content.Context;


public class GlobalFormatter {
	private static Context context;

	public GlobalFormatter() {
	}
	
	public static void setContext(Context val) {
		context = val;
	}
	
	public static String date(long dateLong) {
		String stringDate = "";

		if(context != null) {
			SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
			stringDate = sdf.format(new Date(dateLong));
		}

        return stringDate;
	}
}
